home *** CD-ROM | disk | FTP | other *** search
/ PC World 2004 January / PCWorld_2004-01_cd.bin / Software / temacd / guardwall / GuardIE34b314.exe / {app} / PnIE.dll / HTML / TABS.JS < prev   
Text File  |  2003-10-10  |  2KB  |  81 lines

  1.  var CurrentTab = null;
  2.    
  3.  function ShowPanel(TabIndex) 
  4.  {    
  5.    try
  6.    {
  7.      TabElement = document.getElementById('TAB'+TabIndex)
  8.  
  9.      if (CurrentTab != TabElement)
  10.      {                   
  11.        if (CurrentTab != null)       
  12.          CurrentTab.className  = 'TAB';
  13.        
  14.          CurrentTab = TabElement;
  15.        TabElement.className  = 'SelTAB';               
  16.                
  17.        FRAME.location = 'prop' + TabIndex + '.htm'              
  18.        IeTools.Prop('CurPage') = TabIndex;
  19.      }
  20.    }  
  21.    catch(e) 
  22.    {}
  23.  }
  24.     
  25.  function OnInitTAB()
  26.  {       
  27.    try
  28.    {
  29.      TabIndex = IeTools.Prop('CurPage');     
  30.      ShowPanel(TabIndex);
  31.    }
  32.    catch(e)
  33.    {}
  34.  }
  35.    
  36.    
  37.  function OnHover() 
  38.  {      
  39.       var IntTabIndex = event.srcElement.name - 0;
  40.  
  41.     try
  42.     { FRAME.ShowDesc(IntTabIndex); }
  43.     catch(e)
  44.     {}    
  45.  } 
  46.    
  47.  
  48.  function OnKey(event) 
  49.  {    
  50.    if (event.keyCode == 27)
  51.      window.close();
  52.    else if (event.altKey)
  53.    {   
  54.      try
  55.      {  
  56.       Key = String.fromCharCode(event.keyCode).toLowerCase();
  57.  
  58.       for (i=0; i < document.all.length; i++)
  59.       {    
  60.        Elem = document.all(i);
  61.       
  62.        if (Elem.accessKey == Key)
  63.        {
  64.          Elem.click();
  65.          event.returnValue = false;          
  66.          break;
  67.        }
  68.       }     
  69.      }
  70.      catch(e)
  71.      {}
  72.    }    
  73.   }
  74.    
  75.   
  76.  switch (IeTools.Prop("RunMode"))
  77.  {    
  78.    case 0: document.title = document.title + " ½½ [read-only] ╗╗"; break;
  79.    case 2: document.title = document.title + " ½½ [ADMIN] ╗╗"; break;
  80.  };   
  81.